﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Xml;
using BLL;

namespace Market
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //业务逻辑层
            UserManager us = new UserManager();
            string name = textBox1.Text;
            string pass = textBox2.Text;
            bool hasData = us.UserLogin(name, pass);
            if (hasData)
            {
                MessageBox.Show("登陆成功");
            }
            else
            {
                MessageBox.Show("用户名密码错误");
            }
        }
    }
}
